package com.guanyong.dao;

import com.guanyong.model.FilmModel;
import com.guanyong.model.MerchantModel;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.ResultMap;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

/**
 * Created by mxk on 2017/6/1.
 */
public interface IMerchantDaoMapper {
    @Select("SELECT * FROM t_ad_merchant  where access_key=#{fId}")
    @ResultMap("MerchantResultMap")
    MerchantModel selectByPrimaryKey(String fId);


    List<MerchantModel> SelectMerchantList(@Param("name") String name,
                                           @Param("offset") Integer offset,
                                           @Param("limit") Integer limit);


    Integer SelectMerchantListCount(@Param("name") String name);
}
